﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LinkCard.Dao;
using LinkCard.Model;

namespace LinkCard.AdminCP
{
    public partial class dashboard : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // Check Login
            if (Session["USER"] == null) Response.Redirect("/login.aspx");
            LoadInfo();
        }

        //load thong tin shopcp, nguoi dung, khach hang
        private void LoadInfo()
        {
            try
            {
                //var db = new TopLinkEntities();
                //var shopcpCount = db.Supplier.Where(t=>t.Status==2).Count();
                //var customerCount = db.Customers.Where(t=>t.Status==2).Count();

                //this.shopcp.InnerText = shopcpCount.ToString();
                //this.customer.InnerText = customerCount.ToString();
            }
            catch
            {
 
            }
        }
    }
}